package com.archives.blog.common.domain.pojo.request;

import java.io.Serializable;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

import com.archives.blog.common.validator.annotation.ObjectEquals;

public class UserRegisterRequest extends BaseRequest implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7476015696965001599L;
	// 用户名
	@NotBlank
	private String userName;
	// 密码
	@Size(max = 20, min = 6)
	private String password;
	// 确认密码
	@Size(max = 20, min = 6)
	@ObjectEquals
	private String passwordCheck;
	// 验证码
	private String captcha;
	
	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}
	
	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}
	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	
	/**
	 * @return the passwordCheck
	 */
	public String getPasswordCheck() {
		return passwordCheck;
	}
	/**
	 * @param passwordCheck the passwordCheck to set
	 */
	public void setPasswordCheck(String passwordCheck) {
		this.passwordCheck = passwordCheck;
	}
	/**
	 * @return the captcha
	 */
	public String getCaptcha() {
		return captcha;
	}
	/**
	 * @param captcha the captcha to set
	 */
	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}
	
	
}
